<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateComponentsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('components', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('组件名称');
            $table->string('title', 100)->nullable()->comment('显示名');
            $table->string('description')->nullable()->comment('描述');
            $table->string('ui', 191)->nullable()->comment('UI');
            $table->string('css', 50)->nullable()->comment('css');
            $table->string('container')->nullable()->comment('container');
            $table->string('row')->nullable()->comment('row');
            $table->string('column')->nullable()->comment('column');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('components');
    }
}
